package com.gandong8.trace.tool.config.mysql.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 spring.datasource.driver-class-name=com.mysql.jdbc.Driver
 spring.datasource.url=jdbc:mysql://localhost:3306/test?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&failOverReadOnly=false
 spring.datasource.username=root
 spring.datasource.password=root
 spring.datasource.type=com.zaxxer.hikari.HikariDataSource
 spring.datasource.hikari.minimum-idle=5
 spring.datasource.hikari.maximum-pool-size=30
 spring.datasource.hikari.auto-commit=true
 spring.datasource.hikari.idle-timeout=300000
 spring.datasource.hikari.max-lifetime=900000
 spring.datasource.hikari.connection-timeout=3000
 spring.datasource.hikari.connection-test-query=SELECT 1
 */
@ConfigurationProperties(prefix = "datasource.hikari")
@Data
public class HikariCPProperties extends DatasourceProperties{
    private Integer maxPoolSize = 10;
    private Integer minIdle = 2 ;
    private Boolean autoCommit = true;
    private Integer connectionTimeout = 3000;

}
